<!doctype html>
<html lang="zh-CN">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
  <title>Bootstrap 101 Template</title>

  <!-- Bootstrap -->
  <link rel="stylesheet" href="./bootstrap/css/bootstrap.min.css">

  <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询(media queries)功能 -->
  <!-- 警告:通过 file:// 协议(就是直接将 html 页面拖拽到浏览器中)访问页面时 Respond.js 不起作用 -->
  <!--[if lt IE 9]>
      <script src="https://cdn.jsdelivr.cn/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
      <script src="https://cdn.jsdelivr.cn/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->
</head>
<style>
  .header {
    margin: 50px auto;
  }

  .body {
    margin-bottom: 50px;
  }

  .footer {
    margin-left: 35%;
  }
</style>

<body>
  <div class="container">
    <!-- 头部 -->
    <div class="header">
      <img src="https://dss0.bdstatic.com/-0U0bXSm1A5BphGlnYG/tam-ogel/-1505185836_-469006313_88_88.png" alt="">
      <button type="button" class="btn btn-info" data-toggle="modal" data-target="#addModal">添加</button>
    </div>
    <!-- 添加模态框 -->
    <div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-labelledby="addModalLabel">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="addModalLabel">添加</h4>
          </div>
          <div class="modal-body">
            <form name="addForm">
              <div class="form-group">
                <label for="titel" class="control-label">标题:</label>
                <input type="text" class="form-control" id="title">
              </div>
              <div class="form-group">
                <label for="pos" class="control-label">位置:</label>
                <input type="text" class="form-control" id="pos">
              </div>
              <div class="form-group">
                <label for="idea" class="control-label">想法:</label>
                <textarea class="form-control" id="idea"></textarea>
              </div>
            </form>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            <button type="button" class="btn btn-primary btn-add">保存</button>
          </div>
        </div>
      </div>
    </div>
    <!-- 确认删除的模态框 -->
    <div class="modal fade" id="sureDel" tabindex="-1" role="dialog">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                aria-hidden="true">&times;</span></button>
            <h4 class="modal-title">确认删除</h4>
          </div>
          <div class="modal-body">
            <p>你的心好狠&hellip;</p>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary btn-sure-del">确认</button>
          </div>
        </div><!-- /.modal-content -->
      </div><!-- /.modal-dialog -->
    </div>
    <!-- 修改模态框 -->
    <div class="modal fade" id="modifyModal" tabindex="-1" role="dialog" aria-labelledby="modifyModalLabel">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="modifyModalLabel">修改</h4>
          </div>
          <div class="modal-body">
            <form name="modifyForm">
              <div class="form-group">
                <label for="titel" class="control-label">标题:</label>
                <input type="text" class="form-control" id="title">
              </div>
              <div class="form-group">
                <label for="pos" class="control-label">位置:</label>
                <input type="text" class="form-control" id="pos">
              </div>
              <div class="form-group">
                <label for="idea" class="control-label">想法:</label>
                <textarea class="form-control" id="idea"></textarea>
              </div>
            </form>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary btn-modify">确认修改</button>
          </div>
        </div>
      </div>
    </div>
    <!-- 身体 -->
    <div class="body">
      <table class="table table-striped table-hover">
        <thead>
          <tr>
            <th>#</th>
            <th>标题</th>
            <th>位置</th>
            <th>想法</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <th scope="row">1</th>
            <td>Mark</td>
            <td>Otto</td>
            <td>@mdo</td>
            <td>@mdo</td>
          </tr>
        </tbody>
      </table>
    </div>
    <!-- 尾部 -->
    <div class="footer">
      <nav aria-label="Page navigation">
        <ul class="pagination">
          <li>
            <a href="#" aria-label="Previous">
              <span aria-hidden="true">&laquo;</span>
            </a>
          </li>
          <li><a href="#">1</a></li>
          <li><a href="#">2</a></li>
          <li><a href="#">3</a></li>
          <li><a href="#">4</a></li>
          <li><a href="#">5</a></li>
          <li>
            <a href="#" aria-label="Next">
              <span aria-hidden="true">&raquo;</span>
            </a>
          </li>
        </ul>
      </nav>
    </div>
  </div>

  <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery,所以必须放在前边) -->
  <script src="./lib/jquery-2.2.4.js"></script>
  <!-- 加载 Bootstrap 的所有 JavaScript 插件.你也可以根据需要只加载单个插件. -->
  <script src="./bootstrap/js/bootstrap.min.js"></script>
  <script src="./lib/axios.min.js"></script>
  <script src="./lib/index.js"></script>
</body>

</html>